﻿using System.Diagnostics;
using System.Windows;

namespace 迭代器模式_IEnumerable
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            var concreteList=new ConcreteList();
            var i =concreteList.GetEnumerator();
            while (i.MoveNext())
            {
                var s = i.Current;
                Debug.WriteLine(s);
            }
        }
    }
}
